const func = async () => {
  const response = await window.versions.ping()
  alert(response)
}
const btn = document.createElement("button")
btn.textContent = "点击"
document.body.appendChild(btn)
btn.addEventListener("click", func)
